import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const workOrderTypeApi = {
    // 添加工单类型 @author wuqian
    addWorkOrderType: (data) => {
        return postAxios('/workOrderType/add', data);
    },
    // 分页查询工单类型 @author wuqian
    queryWorkOrderType: (data) => {
        return postAxios('/workOrderType/page/query', data);
    },
    // 批量删除工单类型 @author wuqian
    batchDeleteWorkOrderType: (idList) => {
        return postAxios('/workOrderType/deleteByIds', idList);
    },
    // 修改工单类型  @author wuqian
    updateWorkOrderType: (data) => {
        return postAxios('/workOrderType/update',data);
    },
    // 导出全部  @author wuqian
    exportAll:(data)=>{
        return postDownloadAxios('/workOrderType/export/all',data);
    },
    // 批量导出  @author wuqian
    batchExport: (idList) => {
        return postDownloadAxios('/workOrderType/export/batch', idList);
    },
};
